import request from "@/utils/request";

export default {
  //显示积分等级列表
  list() {
    return request({
      url: "/admin/core/integralGrade/list",
      method: "get"
    });
  },
  //根据id删除积分等级
  removeById(id) {
    return request({
      url: `/admin/core/integralGrade/remove/${id}`,
      method: "delete"
    });
  },
  //增加积分等级
  save(integralGrade) {
    return request({
      url: `/admin/core/integralGrade/save`,
      method: "post",
      data: integralGrade
    });
  },
  //根据id查询积分等级
  getById(id) {
    return request({
      url: `/admin/core/integralGrade/get/${id}`,
      method: "get"
    });
  },
  //更新方法
  updateById(integralGrade) {
    return request({
      url: `/admin/core/integralGrade/update`,
      method: "post",
      data: integralGrade
    });
  }
};
